home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / PDriver / s / PrintrName < prev    next >
Text File  |  1995-08-26  |  1KB  |  30 lines

  1. ;   ####             #    #     # #
  2. ;   #   #            #    #       #          The FreeWare C library for
  3. ;   #   #  ##   ###  #  # #     # ###             RISC OS machines
  4. ;   #   # #  # #     # #  #     # #  #   ___________________________________
  5. ;   #   # ####  ###  ##   #     # #  #
  6. ;   #   # #        # # #  #     # #  #    Please refer to the accompanying
  7. ;   ####   ### ####  #  # ##### # ###    documentation for conditions of use
  8. ;   ________________________________________________________________________
  9. ;
  10. ;   File:    Misc.PrintrName.s
  11. ;   Author:  Copyright © 1993 Jason Williams
  12. ;   Version: 1.00 (22 May 1993)
  13. ;   Purpose: Calls PDriver_Info, and returns the Printer name, or 0 if no
  14. ;            printer is installed. (only tested on RO3.10)
  15.  
  16.         GET     ^.h.regdefs
  17.         GET     ^.h.swinos
  18.         GET     ^.h.macros
  19.  
  20.         PREAMBLE
  21.         STARTCODE PDriver_PrinterName
  22. ;
  23.         STMFD sp!, {r1-r6, lr}
  24.         SWI SWI_PDriver_Info + XOS_Bit
  25.         MOVVS r0, #0
  26.         MOVVC r0, r4
  27.         LDMFD sp!, {r1-r6, pc}^
  28. ;
  29.         END
  30.